<?php

/**
* LQueryBU CONFIG FILE
* 
 */


/*
 * DEFINITIONS THAT CAN BE OVERRIDDEN FROM ANY MODEL CALLING THIS CLASS
 * 
 * To override, define previously with your own settings
 */

/*
 * PATH for Query Files, preferable out of web access
 */
 $LQBU_pathinfo = pathinfo(__FILE__);
if (!defined("LQUERYBU_QUERY_FILES_PATH"))		
	define("LQUERYBU_QUERY_FILES_PATH",$LQBU_pathinfo['dirname'].DIRECTORY_SEPARATOR."query_units".DIRECTORY_SEPARATOR."examples");
/*
 * Enable debug of query modules, FALSE disable even in the case of enabled in the class or direct call
 * Properties:  TRUE=enable saving queries in queue, FALSE=not debug, DUMP=enables dumpping immediately
 * If TRUE, you can retrieve information with dumpDebugQuery() function. 
 */
if (!defined("LQUERYBU_SHOW_SQL_COMMANDS"))	
	define("LQUERYBU_SHOW_SQL_COMMANDS",TRUE);

/*
 * Return results in the form of array of objects (default option) 
 */
if (!defined("LQUERYBU_RETURN_ARRAY")) 	
	define("LQUERYBU_RETURN_ARRAY",FALSE);

/*
 * Return results in the form of objects (usefull for only one record returned)
 */
if (!defined("LQUERYBU_RETURN_OBJECT")) 	
	define("LQUERYBU_RETURN_OBJECT",FALSE);

/*
 * If you use country or lang codes for a subset of data, set it here, will be replaced automatically
 * Remember to put [LANGCODE] in your query, will be replaced by this value
 */
if (!defined("LQUERYBU_LANGCODE")) 		
	define("LQUERYBU_LANGCODE","");

/*
 * If you define this as FALSE, nobody can view debug
 */
if (!defined("LQUERYBU_SHOW_SQL_COMMANDS")) 
	define("LQUERYBU_SHOW_SQL_COMMANDS",FALSE); 

/*
 * Some profilers, as Kohana, need to divide the query time execution, otherwise, 1
 */
if (!defined("LQUERYBU_PROFILER_DIVIDER_EXTIME")) 
	define("LQUERYBU_PROFILER_DIVIDER_EXTIME",1); 
	



